import request from '@/utils/request'
// 查询竞店数据日报列表
export function selectCompetitorShopRank(query) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/selectCompetitorShopRank',
    method: 'get',
    params: query
  })
}
// 查询竞店数据日报列表
export function selectCompetitorShopStatistics(query) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/selectCompetitorShopStatistics',
    method: 'get',
    params: query
  })
}
// 查询竞店数据日报列表
export function comparisonStatisticsPro(query) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/comparisonStatistics',
    method: 'get',
    params: query
  })
}
// 查询竞店数据日报列表
export function listBiCompetitorShopDwd(query) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/list',
    method: 'get',
    params: query
  })
}

// 店铺名字列表
export function selectCompeteShopNameAll(query) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/selectCompeteShopNameAll',
    method: 'get',
    params: query
  })
}
// 查询竞店数据日报详细
export function getBiCompetitorShopDwd(id) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/' + id,
    method: 'get'
  })
}

// 新增竞店数据日报
export function addBiCompetitorShopDwd(data) {
  return request({
    url: '/marketing/BiCompetitorShopDwd',
    method: 'post',
    data: data
  })
}

// 修改竞店数据日报
export function updateBiCompetitorShopDwd(data) {
  return request({
    url: '/marketing/BiCompetitorShopDwd',
    method: 'put',
    data: data
  })
}

// 删除竞店数据日报
export function delBiCompetitorShopDwd(id) {
  return request({
    url: '/marketing/BiCompetitorShopDwd/' + id,
    method: 'delete'
  })
}
